﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Day22EF.Models
{
    public class HeroViewModel
    {
        public string UserId { get; set; }
        public string HeroName { get; set; }
        public string PowerName { get; set; }
        public string PowerType { get; set; }
        public string AffiliationName { get; set; }
    }

    public class CreateHeroViewModel
    {
        [DisplayName("Hero Name")]
        public string HeroName { get; set; }
        [DisplayName("Power Name")]
        public string PowerName { get; set; }
        [DisplayName("Power Type")]
        public int SelectedPowerTypeId { get; set; }
        public List<PowerTypeViewModel> PowerTypes { get; set; }
    }

    public class EditHeroViewModel
    {
        public string UserId { get; set; }
        public int PowerId { get; set; }
        public string HeroName { get; set; }
        public string PowerName { get; set; }
        public int SelectedPowerTypeId { get; set; }
        public List<PowerTypeViewModel> PowerTypes { get; set; }
    }

    public class PowerTypeViewModel
    {
        public int PowerTypeId { get; set; }
        public string Name { get; set; }
    }
}